package library.operation;

import library.ListBook;

//展示所有图书类
public class ListOperation implements IOperation{
    @Override
    public void work(ListBook listBook) {
        System.out.println("***图书列表***");
        for(int i = 0; i < listBook.getSize(); i++){
            System.out.println("[" + i + "] " + listBook.getBook(i));
        }
    }
}
